package com.dhnsoft.education;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@ComponentScan(basePackages = {"com.dhnsoft"})//扫描别的包内的结构
@EnableDiscoveryClient //进行nacos注册
@SpringBootApplication
@MapperScan("com.dhnsoft.education.mapper")
@EnableFeignClients//微服务客户端
@EnableAsync //开启异步
@EnableScheduling //开启定时任务
@EnableCaching
public class WisdomEducationSingleApplication {

    public static void main(String[] args) {
        SpringApplication.run(WisdomEducationSingleApplication.class, args);
    }

}
